//
//  SNKBaseViewController.m
//  SleepNews
//
//  Created by Kavee DJ on 2016/12/8.
//  Copyright © 2016年 Kavee DJ. All rights reserved.
//

#import "SNKBaseViewController.h"

@interface SNKBaseViewController ()

@end

@implementation SNKBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

// 这个基方法还是挺有用的
- (void)dealloc {
    KLog(@"Controller dealloc = %@",NSStringFromClass([self class]));
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}


#pragma mark - 给基础控制器,添加的方法
- (BOOL)canSwipeBack {
    return YES;
}

- (void)back {
    [self.navigationController popViewControllerAnimated:YES];
}

@end
